<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>BKProfile - Kết nối tri thức - Chia sẻ thành công</title>
	</head>

    <body>
        <!-- required libraries -->
        <script type="text/javascript" src="static/js/lib/jquery-1.4.2.min.js"></script>
        <script type="text/javascript" src="static/js/lib/jquery-ui.min.js"></script>
        <script type="text/javascript" src="static/js/lib/jquery.json-2.2.js"></script>
		<script type="text/javascript" src="static/js/lib/jquery.cookie.js"></script>
		<script type="text/javascript" src="static/js/lib/inherit.js"></script>
		<script type="text/javascript" src="static/js/lib/micro-templating.js"></script>
		
		<!-- 3rd party library -->
		<script type="text/javascript" src="static/js/thirdparty/popup.js"></script>
        <script type="text/javascript" src="static/js/thirdparty/jquery.dateFormat-1.0.js"></script>
		<script type="text/javascript" src="static/js/thirdparty/jquery.anythingslider.min.js"></script>
		<script type="text/javascript" src="static/js/thirdparty/jquery.easing.1.2.js"></script>
        <script type="text/javascript" src="static/js/thirdparty/autocomplete.jquery.js"></script>
        <script type="text/javascript" src="static/js/thirdparty/jquery.textarea-expander.js"></script>
		<script type="text/javascript" src="static/js/thirdparty/facebox.js"></script>
		<script type="text/javascript" src="static/js/thirdparty/time.js"></script>
		<script type="text/javascript" src="static/js/thirdparty/slugify.js"></script>
		<script type="text/javascript" src="static/js/thirdparty/tooltips.js"></script>
		
        <!-- framework -->
        <script type="text/javascript" src="static/js/framework/base.js"></script>
		<script type="text/javascript" src="static/js/framework/ui.js"></script>
        <script type="text/javascript" src="static/js/framework/tools.js"></script>
        <script type="text/javascript" src="static/js/framework/event.js"></script>
        <script type="text/javascript" src="static/js/framework/observer.js"></script>
        <script type="text/javascript" src="static/js/framework/plugins.js"></script>
        <script type="text/javascript" src="static/js/framework/page.js"></script>
        <script type="text/javascript" src="static/js/framework/portlet.js"></script>
        <script type="text/javascript" src="static/js/framework/request.js"></script>
        <script type="text/javascript" src="static/js/framework/bootstrap.js"></script>
        <script type="text/javascript" src="static/js/framework/utils.js"></script>
		<script type="text/javascript" src="static/js/framework/memcached.js"></script>
		
		<script type="text/javascript" src="static/js/thirdparty/ajax.js"></script>
		
		<!-- application bootstrap -->
		<script type="text/javascript" src="static/js/app/bkbootstrap.js"></script>
		
		<!-- application plugins -->
		<script type="text/javascript" src="static/js/app/plugins/askuserplugin.js"></script>
		<script type="text/javascript" src="static/js/app/plugins/profiletabs.js"></script>
		<script type="text/javascript" src="static/js/app/plugins/questionTask.js"></script>
		<script type="text/javascript" src="static/js/app/plugins/PluginEditAnswer.js"></script>
		<script type="text/javascript" src="static/js/app/plugins/ajaxLoading.js"></script>
		<script type="text/javascript" src="static/js/app/plugins/SearchMorePlugin.js"></script>
		<script type="text/javascript" src="static/js/app/plugins/cleanstyle.js"></script>
		<script type="text/javascript" src="static/js/app/plugins/focusDetector.js"></script>
		<script type="text/javascript" src="static/js/app/plugins/autocompleteQuestion.js"></script>
		<script type="text/javascript" src="static/js/app/plugins/pagination.js"></script>
		<script type="text/javascript" src="static/js/app/plugins/answerEditBio.js"></script>
        <script type="text/javascript" src="static/js/app/plugins/expertisePlugins.js"></script>
		<script type="text/javascript" src="static/js/app/plugins/UserControlBoxPlugin.js"></script>
        <script type="text/javascript" src="static/js/app/plugins/expertiseDeletePlugin.js"></script>
        <script type="text/javascript" src="static/js/app/plugins/userPlugins.js"></script>
		<script type="text/javascript" src="static/js/app/plugins/profileEditTabPlugin.js"></script>
        <script type="text/javascript" src="static/js/app/plugins/announcementPlugin.js"></script>
        <script type="text/javascript" src="static/js/app/plugins/PluginProfileImage.js"></script>
        <script type="text/javascript" src="static/js/app/plugins/PluginNavigate.js"></script>
        <script type="text/javascript" src="static/js/app/plugins/PluginBKPTextEditor.js"></script>
        <script type="text/javascript" src="static/js/app/plugins/PluginPost.js"></script>
        <script type="text/javascript" src="static/js/app/plugins/PluginComment.js"></script>
        <script type="text/javascript" src="static/js/app/plugins/PluginEditPendingQuestions.js"></script>
        <script type="text/javascript" src="static/js/app/plugins/PluginContent.js"></script>
        <script type="text/javascript" src="static/js/app/plugins/PluginSearchResHelper.js"></script>
		
		<!-- application portlets -->
		<script type="text/javascript" src="static/js/app/portlets/briefInfoEdit.js"></script>
		<script type="text/javascript" src="static/js/app/portlets/featuredprofiles.js"></script>
		<script type="text/javascript" src="static/js/app/portlets/QuestionFollow.js"></script>
		<script type="text/javascript" src="static/js/app/portlets/stats.js"></script>
		<script type="text/javascript" src="static/js/app/portlets/topicpage.js"></script>
        <script type="text/javascript" src="static/js/app/portlets/userPortlets.js"></script>
		<script type="text/javascript" src="static/js/app/portlets/linksPortlet.js"></script>
		<script type="text/javascript" src="static/js/app/portlets/PltDemo.js"></script>
		<script type="text/javascript" src="static/js/app/portlets/feedback.js"></script>
		<script type="text/javascript" src="static/js/app/portlets/StaticContentPortlet.js"></script>
        <script type="text/javascript" src="static/js/app/portlets/usercpPortlets.js"></script>
		<script type="text/javascript" src="static/js/app/portlets/profilePortlet.js"></script>
        <script type="text/javascript" src="static/js/app/portlets/profileInformationPortlet.js"></script>
        <script type="text/javascript" src="static/js/app/portlets/profileEditPortlet.js"></script>
		<script type="text/javascript" src="static/js/app/portlets/invitation.js"></script>
        <script type="text/javascript" src="static/js/app/portlets/PltFooter.js"></script>
        <script type="text/javascript" src="static/js/app/portlets/PltHeader.js"></script>
        <script type="text/javascript" src="static/js/app/portlets/PltError.js"></script>
        <script type="text/javascript" src="static/js/app/portlets/PltNavigation.js"></script>
        <script type="text/javascript" src="static/js/app/portlets/PltSearchResult.js"></script>
        <script type="text/javascript" src="static/js/app/portlets/PltSearchResultDynamic.js"></script>
        <script type="text/javascript" src="static/js/app/portlets/PltAnswer.js"></script>
        <script type="text/javascript" src="static/js/app/portlets/PltBestProfiles.js"></script>
        <script type="text/javascript" src="static/js/app/portlets/PltSearcher.js"></script>
        <script type="text/javascript" src="static/js/app/portlets/PltCreateTopic.js"></script>
        <script type="text/javascript" src="static/js/app/portlets/PltUserActivation.js"></script>
		<script type="text/javascript" src="static/js/app/portlets/TopicCreatePortletStandalone.js"></script>
		<script type="text/javascript" src="static/js/app/portlets/notificationList.js"></script>
        
		<!-- addons -->
		<script type="text/javascript" src="static/js/framework/addons/iefixer.js"></script>
        
		<link href="static/css/beta/tooltips.css" rel="stylesheet" type="text/css" />
		<link href="static/css/beta/popup.css" rel="stylesheet" type="text/css" />
		<link href="static/css/beta/portlet.css" rel="stylesheet" type="text/css" />
        <link href="static/css/beta/reset.css" rel="stylesheet" type="text/css" />
		<link href="static/css/beta/main.css" rel="stylesheet" type="text/css" />
		<link href="static/css/beta/content.css" rel="stylesheet" type="text/css" />
		<link href="static/css/beta/autocomplete.css" rel="stylesheet" type="text/css" />
		<link href="static/css/beta/bkp.css" rel="stylesheet" type="text/css" />
		<link href="static/js/thirdparty/tinyeditor/style.css" rel="stylesheet" type="text/css" />
		
        <script>
        	//Fix bug in IE
        	if (typeof String.prototype.trim !== 'function') {   
        		String.prototype.trim = function() {
        			return this.replace(/^\s+|\s+$/g, "");   
        		} 
        	}
        	if(typeof Array.prototype.indexOf !== 'function'){
	    		Array.prototype.indexOf = function(obj){
	        		for(var i=0; i<this.length; i++){
	            		if(this[i]==obj){
	                		return i;
	            		}
	        		}
	        		return -1;
	    		}
	    	}
        	
            $(document).ready(function(){
				$.get('static/microtemplating/all.beta.txt', {}, function(ret)	{
					var useragent = navigator.userAgent;
					if (useragent.indexOf('MSIE') != -1)	{
						$('#Application-Main').html(ret);
					} else {
						document.getElementById('Application-Main').innerHTML = ret;
					}
					var bkbootstrap = new BKBootstrap();
	                var app = SingletonFactory.getInstance(Application);
	                // app.getSystemProperties().set("host.root", "/bkprofile/branches/milestone032011/");
	                app.getSystemProperties().set("host.root", "/bkprofile/");
	                app.getSystemProperties().set("page.default", "Home");
	                app.setBootstrap(bkbootstrap);
	                Request.setProactive(true);
					app.begin();
					
	                $(window).bind("hashchange", function(){
	                    if (Request.getProactive != true) {
	                        var subject = SingletonFactory.getInstance(Subject);
	                        subject.notifyEvent('NeedAssembleRequest');
	                    }
	                    Request.setProactive(false);
	                });
				});
            });
            function generateEvent(eventName, eventData){
                var subject = SingletonFactory.getInstance(Subject);
                subject.notifyEvent(eventName, eventData);
            }
        </script>
		
        <div id="Application-Main"></div>
        <script type="text/javascript" src="static/js/thirdparty/tinyeditor/packed.js" build="no"></script>
		<script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script>
</body>
</html>